
*no school
gen schooling        = 0    if edattaind == 110

*less than primary school
replace schooling    = 3    if edattaind == 120

*primary school completed
replace schooling    = 6    if edattaind == 212

*lower secondary completed
replace schooling    = 9    if edattaind == 221
replace schooling    = 9    if edattaind == 222

*general secondary completed
replace schooling    = 12   if edattaind == 311
replace schooling    = 12   if edattaind == 321

*less than university
replace schooling    = 14   if edattaind == 312
replace schooling    = 14   if edattaind == 322

*university completed
replace schooling    = 16   if edattaind == 400

drop if edattaind == 999 | edattaind == 0
